package com.gnerv.rabbitmq.manage.business;

import com.gnerv.rabbitmq.manage.annotation.Business;
import com.gnerv.rabbitmq.manage.model.dto.AccountCreateDTO;
import com.gnerv.rabbitmq.manage.service.AccountService;
import jakarta.annotation.Resource;

/**
 * @author Gnerv LiGen
 */
@Business
public class AccountBusiness {

    @Resource
    private AccountService accountService;

    public void create(AccountCreateDTO accountCreateDTO) {
        accountService.create(accountCreateDTO.getUsername(), accountCreateDTO.getPassword());
    }

}
